<?php
return array(
	'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
	'name'=>'',
	'timeZone'=>'America/New_York',
	'preload'=>array('log'),
	
	'aliases' => array(
			'dao' => dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'models' . DIRECTORY_SEPARATOR . 'dao',
			'widgetsPlus' => dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'widgets'
	),
	
	'import'=>array(
		'application.models.*',
		'application.components.*',
		'application.extensions.*',
	    
	    'application.components.login.LoginPlus',
	    'application.components.login.auth.*',
	    
	    'application.components.register.RegisterPlus',
	    'application.components.register.form.*',
		
		'application.components.hashModel.*',
	    
	    'application.models.form.*',
	    'application.models.dao.*',
	    
	    'application.services.*',
	    'application.services.Payment.api.*',
		'application.services.Payment.class.*',
		'application.services.Payment.data.*',
		'application.services.Payment.process.*',
	),

	'modules'=>array(	
		
	),

	// application components
	'components'=>array(
		'user'=>array(
			// enable cookie-based authentication
			'allowAutoLogin'=>true,
			'loginUrl'=>array('/'),
			//'class' => 'LoginWebUser',
// 			'defaultController' => 'home',
		),
		// uncomment the following to enable URLs in path-format
		
		'db'=>array(
// 			'connectionString' => 'mysql:host=localhost;dbname=pa_i9',
// 			'emulatePrepare' => true,
// 			'enableProfiling'=> true,
// 			'enableParamLogging' => true,
// 			'username' => 'pa_i9',
// 			'password' => 'gRHbQ2aG',
// 			'charset' => 'utf8',
		    'connectionString' => 'mysql:host=rds.egunner.com;dbname=pa',
		    'emulatePrepare' => true,
		    'enableProfiling'=> true,
		    'enableParamLogging' => true,
		    'username' => 'pa',
		    'password' => 'Xm8cAScy',
		    'charset' => 'utf8',
		),
		'errorHandler'=>array(
			'errorAction'=>'error/error',
		),
		'log'=>array(
			'class'=>'CLogRouter',
		),	
		'resource'	=> 	array(
			'class'	=>	'application.components.Resource'
		),
	    'cache'=>array(
	        'class'=>'system.caching.CFileCache',
	        'keyPrefix' => 'dibzees_',
	        'hashKey' => false,
	    ),
		'dbRedis' => array(
				'class' => 'application.components.redis.RedisDb',
				'host' => '127.0.0.1'
		),
		'lock' => array(
				'class' => 'application.components.Lock',
		),
		'tools' => array(
				'class' => 'application.components.Tools'
		)
	),
	'params'=>array(),
);